import { createRouter, createWebHistory } from 'vue-router'


const routes = [
  {
    path: '/',
    name: 'Dashboard',
    redirect: { name: "Container" }
  },
  {
    path: '/containers',
    name: 'Container',
    component: () => import('../views/Container.vue')
  },
  {
    path: '/images',
    name: 'Image',
    component: () => import('../views/Image.vue')
  },
  {
    path: '/app',
    name: 'Apps',
    component: () => import('../views/Apps.vue')
  },
  {
    path: '/k8s',
    name: 'K8s',
    component: () => import('../views/K8s.vue')
  }
  ,
  {
    path: '/pods',
    name: 'pods',
    component: () => import('../views/Pods.vue')
  }
  ,
  {
    path: '/harbors',
    name: 'pods',
    component: () => import('../views/Harbor.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
